function reducer(prevState = {
    list1:[],
    list2:[]
}, action = {}){
    let newState = {...prevState}
    switch(action.type){
        case 'change-list1':
            console.log(action.payload)
            newState.list1 = action.payload
             return newState
        case 'change-list2':
            console.log(action.payload)
            newState.list2 = action.payload
            return newState
        default:
            return prevState
    }
    // return prevState
}
export default reducer